<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class ChatMsg extends Model
{
    protected $table = 'chat_msg';
    public $timestamps = false;
    protected $fillable = [
      'chat_id','user_id','msg_type','content','create_time'
    ];

    public function addAll(Array $data) {
        $rs = DB::table($this->getTable())->insert($data);
        return $rs;
    }

}
